<div class="list-boxes layui-form">



    <table class="layui-table">
        <colgroup>
            <col width="80">
            <col width="300">
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >
            <col >

        </colgroup>
        <thead>
        <tr>
            <th>序号</th>
            <th>名称</th>
            <th>状态</th>
            <th>时间</th>
            <th>类型</th>
            <th>总额</th>
            <th>利润/利润率</th>
            <th>操作</th>

        </tr>
        </thead>
        <tbody>





        <?php
        for ($i = 0; $i < count($case); $i++) {
            ?>


            <tr id="item<?echo $case[$i]['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>


                <td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>
                <td>【<?echo $mod_unit_name_list[$case[$i]['unit']]?>】<?echo $case[$i]['name']?></td>

                <td><span <?if($case[$i]['status']=='进行中'){echo "style='background-color:#ff9900'";}?>> <?echo $case[$i]['status']?></span></td>

                <td><?echo substr($case[$i]['startdate'],0,10)?> - <?echo substr($case[$i]['enddate'],0,10)?> / <?echo count_days($case[$i]['startdate'],$case[$i]['enddate'])?> 日 </td>

                <td><?echo $case[$i]['type']?></td>
                <td><?echo $case[$i]['sum']?></td>
                <td><?if(isset($case[$i]['profit']) && ($case[$i]['status'] =="完成") ){?>
                        <? echo $case[$i]['profit'] ?>  【  <?echo round( $case[$i]['profit']/$case[$i]['sum'],3)*100?>% 】
                    <?}?></td>


<!--
                <td >



                    <a href="../unit/detail-statistic.php?&nid=<? echo $case[$i]['unit']?><?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part.$term_nid ?><?echo $url_str?>" class="layui-btn layui-btn-primary layui-btn-small" target="_blank vftg bgcbcbc" >信息</a>


                    <? if(in_array("admin",$quanxian)){?>
                        <a href="detail-edit.php?nid=<? echo $case[$i]['nid']?><?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part.$term_nid ?>" class="layui-btn layui-btn-primary layui-btn-small" >
                            <i class="layui-icon">&#xe642;</i>修改
                        </a>


                        <a href="javascript:void(0)" onclick="delItem (<?php echo $case[$i]['nid']?>)" class="delete layui-btn layui-btn-primary layui-btn-small" > <i class="layui-icon">&#xe640;</i> 删除 </a>
                    <?}?>



                </td>

                -->
            </tr>
        <?}?>


        </tbody>
    </table>






</div>